#!/bin/bash
set -e

bundle_cover() {
	coverprofiles=( "$DEST/../"*"/coverprofiles/"* )
	for p in "${coverprofiles[@]}"; do
		echo
		(
			set -x
			go tool cover -func="$p"
		)
	done
}

bundle_cover 2>&1 | tee "$DEST/report.log"
